<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>全部筹资项目</title>
		<script src="js/jquery.js" type="text/javascript"></script>
		<script src="js/table.js" type="text/javascript"></script>
	</head>
	<body>
		<div class="div_title">管理筹资项目</div>
		<div class="div_article">
			<form id="mainForm" action="manage/getAllProjects.action" method="get">
				<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
				<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
				<input type="hidden" name="page.order" id="order" value="${page.order}"/>
				<table class="table_items">
					<thead>
						<tr>
							<th>
								筹资项目名称
							</th>
							<th class="td_link">
								查看
							</th>
							<th class="td_link">
								编辑
							</th>
							<th class="td_link">
								删除
							</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="page.result">
							<tr>
								<td>
									${name}
								</td>
								<td>
									<a href="manage/viewProject.action?part=2&uuid=${uuid}">查看</a>
								</td>
								<td>
									<a href="manage/toEditProject.action?uuid=${uuid}">编辑</a>
								</td>
								<td>
									<a href="manage/deleteProject.action?id=${id}" target="_self">删除</a>
								</td>
							</tr>
						</s:iterator>
					</tbody>
				</table>
				<div id="divPageController">
					共${page.totalCount}条&nbsp;&nbsp;共${page.totalPages}页&nbsp;&nbsp;第${page.pageNo}页&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="javascript:jumpPage(1)">首页</a>
					<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
					<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
					<a href="javascript:jumpPage(${page.totalPages})">末页</a>
				</div>
			</form>
		</div>
	</body>
</html>